<!DOCTYPE html>

<html
<head>
	<title>Simple 3D example</title>
	<style>
	 div {
	   height: 150px; width: 150px;
	  }
	  .container {
	    border: 1px solid black;
	    margin: 20px;
	    background-color: rgba(0, 0, 0, 0.1);
	    -webkit-perspective: 500px;
	    -moz-perspective: 500px;
	    -ms-perspective: 500px;
	    -o-perspective: 500px;
	    perspective: 500px;
	  }
	  .transformed {
 	   -webkit-transform: rotateY(50deg);
 	   -moz-transform: rotateY(50deg);
 	   -ms-transform: rotateY(50deg);
 	   -o-transform: rotateY(50deg);
 	   transform: rotateY(50deg);
 	   background-color: blue;
	  }
	</style>
</head>
<body>
  <div class="container">
    <div class="transformed"></div>
  </div>
</body>
</html>
